JavaScript

A5.ViewBoxpopulate Method

Syntax

A5.ViewBox.populate(data[,keepValue[,animation[,fireEvent]])

Arguments

dataobject

Data for the view box.

keepValueboolean

Whether or not to keep the previous value of the view box, or reset it.

animationbooleanstringobject

What animation to perform. To not animate pass in false. If a string is passed in the value of the string is assumed to be the name of the animation to do. If an object is passed in it must conform to the view box animation object. See A5.ViewBox Animation Object.

fireEventboolean

Whether or not to fire the populate events.

Description

Populate the view box with new data.

Example

// To get a pointer to the A5.ViewBox class see {dialog.object}.getControl
// assume vbObj is a pointer to an instance of the A5.ViewBox class
var data = {name: 'Fred Smith', age: 23};
vbObj.populate(data);